package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/24 0024
 **/
@Data
@ApiModel("工单留言对象")
public class OrderLeaveMessageVo {
    @NotNull(message = "工单ID不能为空")
    @ApiModelProperty(value = "工单ID", required = true)
    private Long workId;

    @ApiModelProperty(value = "可见类型：0-公开，1-服务商，2-工程师，3-工单客户，4-工单客服", required = true, example = "[0]")
    private List<Integer> visitTypes;

    @Length(max = 500, message = "留言内容长度限制 500 个字符")
    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "附件")
    private List<String> annex;

}
